import request from '/@/utils/request'

// 用户信息
export const manageUserInfo = (params?: any) => request.get('/addons/manage/userInfo', params);

// 用户登录
export const manageLogin = (params?: any) => request.post('/addons/manage/login', params);

// 退出登录
export const manageLogout = (params?: any) => request.get('/addons/manage/logout', params);

// 刷新缓存
export const manageRefresh = (params?: any) => request.get('/addons/manage/refresh', params);

// 插件列表
export const manageList = (params?: any) => request.get('/addons/manage/lists', params);

// 插件分类列表
export const manageCategoryLists = (params?: any) => request.get('/addons/manage/categoryLists', params);

// 本地插件列表
export const manageLocalLists = (params?: any) => request.get('/addons/manage/localLists', params);

// 插件详情
export const manageDetail = (params?: any) => request.get('/addons/manage/detail', params);

// 本地插件详情
export const manageLocalDetail = (params?: any) => request.get('/addons/manage/localDetail', params);

// 插件下载
export const manageDownload = (params?: any) => request.post('/addons/manage/download', params);

// 插件安装
export const manageInstall = (params?: any) => request.post('/addons/manage/install', params);

// 插件卸载
export const manageUninstall = (params?: any) => request.post('/addons/manage/uninstall', params);

// 插件更新
export const manageUpdate = (params?: any) => request.post('/addons/manage/update', params);

// 插件导入
export const manageimport = (params?: any) => request.post('/addons/manage/import', params);

// 执行命令
export const manageExecute = (params?: any) => request.get('/addons/manage/execute', params);

// 获取依赖
export const manageDepends = (params?: any) => request.get('/addons/manage/depends', params);

// 获取终端命令
export const manageCommands = (params?: any) => request.get('/addons/manage/commands', params);

// 执行终端命令
export const manageTerminal = (params?: any) => request.get('/addons/manage/terminal', params);